package com.spsoft.vatoutinv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spsoft.system.entity.NvatOutInvoiceItems;
import com.spsoft.vatoutinv.model.dto.matchflow.VmsSelectItemFlowPageDto;
import com.spsoft.vatoutinv.model.vo.matchflow.VmsMatchFlowSelectItemVo;
import com.spsoft.vatoutinv.model.vo.vmstransactionflowinvoice.VmsTransactionFlowInvoicePageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 销项发票明细信息 Mapper 接口
 * </p>
 *
 * @author chenxudong
 * @since 2023-12-14
 */
public interface VatNvatOutInvoiceItemsMapper extends BaseMapper<NvatOutInvoiceItems> {

    /**
     * 根据发票主表id查询发票明细信息以及明细的匹配状态
     */
    List<VmsMatchFlowSelectItemVo> matchFlowSelect(@Param("oidid") Long oidid);

    /**
     * 查询发票明细已匹配的交易流水-分页查询
     */
    IPage<VmsTransactionFlowInvoicePageVo> queryFlowByItem(@Param("page") Page<VmsTransactionFlowInvoicePageVo> page,
                                                           @Param("pageDto") VmsSelectItemFlowPageDto pageDto);
}
